import { createStore } from 'vuex';

const store = createStore({
  state() {
    return {
      viewer: null,
      aaa: 'Dawdawdawdwa'
    };
  },
  mutations: {
    setViewer(state, viewer) {
      state.viewer = viewer;
    }
  },
  actions: {
    updateViewer({ commit }, viewer) {
      commit('setViewer', viewer);
    }
  }
});

export default store; 